Skip to content

fix(web): center the Connections map zoom controls - #41081

Merged
shivamhwp merged 4 commits into
mainfrom
t3/align-network-legend
Nov 23, 2026
Merged

shivamhwp merged 4 commits into
mainfrom
t3/align-network-legend

Conversation

@shivamhwp

@shivamhwp shivamhwp commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

The zoom controls sat against the top of the Connections map footer, with 8 px of padding below. Use 4 px of padding above and below to move the minus, plus, and fit controls down 4 px and center them alongside the legend. The footer keeps the same height.

Before After
Zoom controls against the top divider Zoom controls centered in the footer

Verified in Chromium 158 on Linux at 1280 × 800. Both zoom buttons changed the map scale, and Fit restored the default view. vp run check:changed passed on the exact head diff. Captures compare a3323d4a433a1a4d074e402083df15c63db1a32c and 6dc90a87fb62c8cf76759de7abb07843a465556d. The optional Two-way legend entry and the Electron wrapper were not exercised.

Implemented with Claude Opus 5.5 (Claude Agent). Verified with GPT-6.2 Sol and reviewed with GPT-6.1 Sol (Codex).

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 15c0711 and bfca960.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The environment map controls row is vertically centered. The legend list no longer has bottom padding.

Changes: Environment map layout

Layer / File(s) Summary
Controls and legend layout
apps/web/src/components/settings/EnvironmentsMap.tsx
The controls row changes from bottom alignment to vertical centering. The legend list removes bottom padding.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · previous review 6dc90

This change centers the Connections map legend against the zoom and fit controls and removes the legend's extra bottom padding. It is a small visual layout fix with no expected functional or production impact, and no merge-blocking risk is apparent.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Title check Warning The title says the Connections map zoom controls are centered, but the raw summary and PR objectives describe a footer layout change that moves the legend's padding and removes its bottom padding to a… Rename the title to describe the actual change, for example: "fix(web): center the Connections map legend with zoom controls". The title should match the PR objective of aligning the legend with the footer controls.
Passed Passed checks: 3 passed

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states the problem (zoom controls sit against the top of the footer), the change (4 px padding above and below), and verification steps (Chromium 158 on Linux, zoom and fit tested, che…
Full details: Description check

Explanation

The description states the problem (zoom controls sit against the top of the footer), the change (4 px padding above and below), and verification steps (Chromium 158 on Linux, zoom and fit tested, check:changed passed, before/after screenshots). It does not fully fit the template. The Scope section is missing: it does not link an issue or explain why no issue is needed, and it does not say whether a maintainer requested the PR. The description also says the controls move to be centered with the legend, which conflicts with the objective of moving the legend. The description is mostly complete, so it passes with the gaps noted.

Full details: Title check

Explanation

The title says the Connections map zoom controls are centered, but the raw summary and PR objectives describe a footer layout change that moves the legend's padding and removes its bottom padding to align the legend with the controls. The title names the controls as the thing being centered, while the change centers the legend alongside them, so the title misdescribes the main change. The title is still partially related because the footer layout and the zoom controls are both involved.

Resolution

Rename the title to describe the actual change, for example: "fix(web): center the Connections map legend with zoom controls". The title should match the PR objective of aligning the legend with the footer controls.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e118983 and 6dc90a8.

Files selected for processing: 1

  • apps/web/src/components/settings/EnvironmentsMap.tsx
Files skipped from review as they are similar to previous changes: 1

  • apps/web/src/components/settings/EnvironmentsMap.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 22, 2026
@shivamhwp shivamhwp changed the title fix(web): center the Connections map legend fix(web): center the Connections map zoom controls Nov 22, 2026
@shivamhwp
shivamhwp merged commit 65d2b4f into main Nov 23, 2026
36 checks passed
@shivamhwp
shivamhwp deleted the t3/align-network-legend branch November 23, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants